package com.longZ.himalaya.adapters;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.longZ.himalaya.utils.FragmentCreator;

public class MainContentAdapter extends FragmentPagerAdapter {
    public MainContentAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        //返回当前界面页数码
        return FragmentCreator.getFragment(position);
    }

    @Override
    public int getCount() {
        //返回界面数量
        return FragmentCreator.COUNT_PAGE;
    }
}
